package com.dome.service;

import com.dome.config.MyDateSources;
import com.dome.dao.MenuDao;
import com.dome.model.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MenuService {
	@Autowired
	MenuDao menuDao;


	@MyDateSources(data="1")
	public void deleteMenuWH(long id) {
		  menuDao.deleteMenuWH(id);
	}
	@MyDateSources(data="1")
	public List<Menu> getWH(long id) {
		return menuDao.selectMenu(id);
	}
	@MyDateSources(data="2")
	public List<Menu> getBJ(long id) {
		return menuDao.selectMenu(id);
	}
	@MyDateSources(data="1")
	public void insertMenuWH(List<Menu> menuBJ) {
		menuDao.insertMenuWH(menuBJ);
	}
}
